package com.qimu.saiyou.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qimu.saiyou.model.dto.questionbank.QuestionBankQueryRequest;
import com.qimu.saiyou.model.entity.QuestionBank;
import com.qimu.saiyou.model.vo.QuestionBankVo;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: FeiXiang
 * @description 针对表【question_bank(题库)】的数据库操作Service
 * @createDate 2024-02-28 20:36:14
 */
public interface QuestionBankService extends IService<QuestionBank> {
    void validQuestionBank(QuestionBank questionBank, boolean add);

    QueryWrapper<QuestionBank> getQueryWrapper(QuestionBankQueryRequest questionBankQueryRequest);

    Page<QuestionBankVo> getQuestionBankVoPage(Page<QuestionBank> questionBankPage, HttpServletRequest request);
    QuestionBankVo getQuestionBankVo(QuestionBank questionBank, HttpServletRequest request);
}
